package com.spring.demo.corp.handler;

import com.spring.demo.corp.PayOrderForm;
import com.spring.demo.corp.PayOrderService;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(0)
@Component
public class AuthPayOrderChainFilter implements PayOrderService {

    @Override
    public boolean payOrder(PayOrderForm payOrderForm) {
        if (!"token".equals(payOrderForm.getToken())) {
            System.out.println("token不合法");
            return false;
        }
        return true;
    }

}
